package com.xt.purchasingsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xt.purchasingsystem.dto.SupplierApprovalDto;
import com.xt.purchasingsystem.model.SupplierApproval;
import com.xt.purchasingsystem.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhp
 * @since 2020-05-31
 */
public interface SupplierApprovalService extends IService<SupplierApproval> {
    /**
     * 添加供应商申请审批表和供应商申请审批明细的业务
     * @return
     */
    Result saveSupplierApproval(SupplierApprovalDto supplierApprovalDto);

    /**
     * 分页查询所有未审核和未处理的供应商申请及其明细的业务
     * @param currNo
     * @param pageSize
     * @return
     */
    Result getAllNoCheckAndNoApply(Integer currNo, Integer pageSize);

    /**
     * 审核供应商申请及其明细的接口
     * @param supplierApprovalDto
     * @return
     */
    Result checkSupplierApproval(SupplierApprovalDto supplierApprovalDto);
}
